{extend name="$base" /}
{block name="resources"}
<link rel="stylesheet" href="WAP_CSS/order_payment.css">
<link rel="stylesheet" href="//at.alicdn.com/t/font_1087048_ti88xqkwo0p.css">
{/block}
{block name="head"}{/block}
{block name="main"}
{php}
// 订单创建所需数据
$params = [];
$params['order_type'] = !empty($create_data['order_type']) ? $create_data['order_type'] : 0;
$params['goods_sku_list'] = !empty($create_data['goods_sku_list']) ? $create_data['goods_sku_list'] : '';
$params['promotion_type'] = !empty($create_data['promotion_type']) ? $create_data['promotion_type'] : 0;
$params['promotion_info'] = !empty($create_data['promotion_info']) ? $create_data['promotion_info'] : [];

$buyer_ip = request()->ip();
$data = api("System.Order.orderDataCollation", ['data' => json_encode($params)]);
$data = $data['data'];
$is_virtual = $data['is_virtual']; // 是否是虚拟商品
{/php}
{empty name="$data"}
<script type="text/javascript">
if(window.sessionStorage){
	sessionStorage.setItem('errorMsg', JSON.stringify({title : '亲爱的用户，您刷新过于频繁，请稍后再试，您可以先去首页逛逛！', message : '未获取到创建订单所需数据。'}));
}
location.href = "{:__URL('APP_MAIN/index/errorTemplate')}";
</script>
{:exit()}
{/empty}
<!-- 主体页面 -->
<div data-page="main" id="app">
	<header class="ns-header">
		<a class="go-back" href="javascript:history.go(-1);"><i class="icon-angle-left"></i></a>
		<h1>{$title}</h1>
	</header>
	<div class="h50"></div>
	{eq name="$is_virtual" value="0"}
		<!-- 收货地址 -->
		{notempty name="$data['address']"}
		<div class="address-wrap">
			<ul class="address" data-value="{$data.address.id}">
				<a href="{:__URL('APP_MAIN/member/address?url=cart')}">
					<li class="clearfix">
						<span class="name">收货人信息：{$data.address.consigner}</span>
						<span class="tel">{$data.address.mobile}</span>
					</li>
					<li class="address-detail ns-text-color-gray">收货地址：{$data.address.address_info}</li>
				</a>
			</ul>
		</div>
		{else/}
		<div class="empty-address">
			<a href="{:__URL('APP_MAIN/member/address?url=cart')}">
				<i class="add-icon"></i>
				<span>新增收货地址</span>
			</a>
		</div>
		{/notempty}
		<div class="dividing-line ns-bg-color-gray-fadeout-80"></div>
	{/eq}

	<!-- 购买的商品 -->
	<div class="goods-wrap">
		{if $data['order_type'] eq 6}
			<!-- 预售订单 -->
			{foreach name="$data['goods_sku_array']" item="product_item"}
			<div class="goods-item clearfix">
				<div class="goods-img">
					<img src="{:__IMG($product_item['goods_picture_info']['pic_cover_small'])}">
				</div>
				<div class="goods-info">
					<div class="goods-name">
						<strong>{$product_item.goods_info.goods_name}</strong>
					</div>
					<p class="sku-name ns-text-color-gray">{$product_item.goods_sku_info.sku_name}</p>
				</div>
				<div class="goods-buy-info">
					<div class="price ns-text-color"><span class="unit">￥</span>{$product_item.presell_price}</div>
					<div class="tail-money">尾款：<span class="ns-text-color">￥{:sprintf("%.2f", ($product_item.sku_price - $product_item.presell_price))}</span></div>
					<div class="buy-num ns-text-color-gray">x{$product_item.num}</div>
				</div>
			</div>
			{/foreach}
		{elseif $data['promotion_type'] == 4}
			<!-- 积分兑换 -->
			{foreach name="$data['goods_sku_array']" item="product_item"}
			<div class="goods-item clearfix">
				<div class="goods-img">
					<img src="{:__IMG($product_item['goods_picture_info']['pic_cover_small'])}">
				</div>
				<div class="goods-info">
					<div class="goods-name">
						<strong>{$product_item.goods_info.goods_name}</strong>
					</div>
					<p class="sku-name ns-text-color-gray">{$product_item.goods_sku_info.sku_name}</p>
				</div>
				<div class="goods-buy-info">
					{if $product_item.goods_info.point_exchange_type == 1}
						<!-- 积分+现金 -->
						<div class="price ns-text-color"><span class="unit">￥</span>{$product_item.sku_price}</div>
						<div class="price ns-text-color"><span class="unit">+</span>{$product_item.goods_info.point_exchange}<span class="point">积分</span></div>
					{else/}
						<div class="price ns-text-color">{$product_item.goods_info.point_exchange}积分</div>
					{/if}
					<div class="buy-num ns-text-color-gray">x{$product_item.num}</div>
				</div>
			</div>
			{/foreach}
		{else/}
			{foreach name="$data['goods_sku_array']" item="product_item"}
			<div class="goods-item clearfix">
				<div class="goods-img">
					<img src="{:__IMG($product_item['goods_picture_info']['pic_cover_small'])}">
				</div>
				<div class="goods-info">
					<div class="goods-name">
						<strong>{$product_item.goods_info.goods_name}</strong>
					</div>
					<p class="sku-name ns-text-color-gray">{$product_item.goods_sku_info.sku_name}</p>
				</div>
				<div class="goods-buy-info">
					<div class="price ns-text-color"><span class="unit">￥</span>{$product_item.sku_price}</div>
					<div class="buy-num ns-text-color-gray">x{$product_item.num}</div>
				</div>
			</div>
			{/foreach}
		{/if}
		
		{notempty name="$data['gift_array']"}
			{foreach name="$data['gift_array']" item="product_item"}
			<div class="goods-item clearfix">
				<div class="goods-img">
					<img src="{:__IMG($product_item['goods_picture_info']['pic_cover_small'])}">
				</div>
				<div class="goods-info">
					<div class="goods-name">
						<mark class="gift-mark ns-bg-color">赠品</mark>
						<strong>{$product_item.goods_info.goods_name}</strong>
					</div>
					<p class="sku-name ns-text-color-gray">{$product_item.goods_sku_info.sku_name}</p>
				</div>
				<div class="goods-buy-info">
					<div class="price ns-text-color"><span class="unit">￥</span>{$product_item.sku_price}</div>
					<div class="buy-num ns-text-color-gray">x{$product_item.num}</div>
				</div>
			</div>
			{/foreach}
		{/notempty}
	</div>
	<div class="dividing-line ns-bg-color-gray-fadeout-80"></div>
	<!-- end 购买的商品 end -->

	{eq name="$is_virtual" value="1"}
	<!-- 手机号码 -->
	<div class="option-item ns-border-color-gray account-cont">
		<label>手机号码</label>
		<input type="text" name="mobile" maxlength="11" placeholder="请输入手机号">
	</div>
	{/eq}

	{notempty name="$data['pay_type']"}
	<!-- 支付方式 -->
	<div class="option-item ns-border-color-gray" {if count($data['pay_type']) gt 1} onclick="picker.show('pay-type');" {/if}>
		<label>支付方式</label>
		<i class="fa fa-angle-right ns-text-color-gray {if count($data['pay_type']) eq 1}vis-hidden{/if}"></i>
		<span class="ns-text-color-gray" v-text="payTypeName">{$data['pay_type'][0]['type_name']}</span>
	</div>
	{else/}
	<div class="option-item ns-border-color-gray">
		<label>支付方式</label>
		<i class="fa fa-angle-right ns-text-color-gray vis-hidden"></i>
		<span class="ns-text-color">商家未配置支付方式</span>
	</div>
	{/notempty}

	{eq name="$is_virtual" value="0"}
		{notempty name="$data['express_type']"}
		<!-- 配送方式 -->
		<div class="shipping-type ns-border-color-gray" onclick="page.show('delivery')">
			<div class="clearfix">
				<label>配送服务</label>
				<i class="fa fa-angle-right ns-text-color-gray"></i>
				<span class="ns-text-color-gray" v-text="shippingInfo.shippingType">物流配送</span>
			</div>
			<div class="other-info clearfix">
				<span class="ns-text-color-gray key pull-left" v-text="shippingInfo.leftCont">送货时间</span>
				<span class="ns-text-color-gray value pull-right" v-text="shippingInfo.rightCont">工作日、双休日与节假日均可送货</span>
			</div>
		</div>
		{/notempty}
	{/eq}

	{notempty name="$data['coupon_list']"}
	<!-- 优惠券 -->
	<div class="option-item ns-border-color-gray" onclick="page.show('coupon');">
		<label>优惠券</label>
		<i class="fa fa-angle-right ns-text-color-gray"></i>
		<span class="ns-text-color" v-html="couponCont">已使用1张，可抵扣￥<span>{$data['coupon_list'][0]['money']}</span></span>
	</div>
	{/notempty}

	{eq name="$is_virtual" value="0"}
		{notempty name="$data['invoice_info']"}
		<!-- 发票信息 -->
		<div class="option-item ns-border-color-gray" onclick="page.show('invoice')">
			<label>发票信息</label>
			<i class="fa fa-angle-right ns-text-color-gray"></i>
			<span class="ns-text-color-gray" v-text="isNeedInvoice ? '需要发票' : '不需要发票'">不需要发票</span>
		</div>
		{/notempty}
	{/eq}
	
	{if addon_is_exit('NsCustomForm')}
	{php}
		$custom_list = api("System.Member.getOrderCustom", []);
	{/php}
	{notempty name="$custom_list['data']"}
		{volist name="$custom_list.data" id="list"}
		{if condition = "$list.custom_list"}
		<div class="option-item ns-border-color-gray" onclick="custom.show('{$list.oc_id}');">
			<label>{$list.oc_name}</label>
			<input type="hidden" id="{$list.name_alias}" value="1">
			<i class="fa fa-angle-right ns-text-color-gray"></i>
			<span class="ns-text-color-gray">添写信息</span>
		</div>
		{/if}
		{/volist}
	{/notempty}
	{/if}
	
	{if $data['max_use_point'] > 0}
	<div class="option-item ns-border-color-gray point">
		<label>积分抵现<span class="desc ns-text-color">本次最大可用{$data['max_use_point']}积分</span></label>
		<input type="number" class="use-point ns-text-color-gray" value="0" data-max-available="{$data['max_use_point']}">
	</div>
	{/if}

	<div class="option-item ns-border-color-gray">
		<label>买家留言</label>
		<textarea class="user-message" placeholder="给卖家留言"></textarea>
	</div>

	<!-- start 订单计算信息 start -->
	<div class="dividing-line ns-bg-color-gray-fadeout-80"></div>
	<div class="buy-section">
		<ul>
			{eq name="$data['order_type']" value="6"}
			<li class="clearfix">
				<span class="text pull-left">付款</span>
				<span class="price pull-right presell-pay-type">
					<ul class="clearfix">
						<li class="selected" data-value="0">
							<i class="iconfont iconchecked ns-text-color"></i>
							<span>定金</span>
						</li>
						<li data-value="1">
							<i class="iconfont iconcheckbox ns-text-color-gray"></i>
							<span>全款</span>
						</li>
					</ul>
				</span>
			</li>
			{/eq}
			<li class="clearfix">
				<span class="text pull-left">商品金额</span>
				<span class="price pull-right ns-text-color">
					<em class="unit">￥</em><span v-text="goodsMoney">0.00</span>
				</span>
			</li>
			{eq name="$is_virtual" value="0"}
			<li class="clearfix">
				<span class="text pull-left">运费</span>
				<span class="price pull-right ns-text-color">
					<em class="unit">￥</em><span v-text="shippingMoney">0.00</span>
				</span>
			</li>
			{/eq}
			<li class="clearfix">
				<span class="text pull-left">优惠金额</span>
				<span class="price pull-right ns-text-color">
					<em class="unit">￥</em><span v-text="promotionMoney">0.00</span>
				</span>
			</li>
			<li class="clearfix" v-show="isNeedInvoice">
				<span class="text pull-left">税费</span>
				<span class="price pull-right ns-text-color">
					<em class="unit">￥</em><span v-text="taxMoney">0.00</span>
				</span>
			</li>

			{if $data['max_use_point'] > 0}
			<li class="clearfix">
				<span class="text pull-left">积分抵现</span>
				<span class="price pull-right ns-text-color">
					<em class="unit">￥</em><span v-text="pointMoney">0.00</span>
				</span>
			</li>
			{/if}

			{eq name="$data['promotion_type']" value="4"}
			<li class="clearfix">
				<span class="text pull-left">兑换所需积分</span>
				<span class="price pull-right ns-text-color">
					<span>{$data.total_buy_point}</span><em class="unit">积分</em>
				</span>
			</li>
			{/eq}
		</ul>
		<p class="total-price">
			<strong>应付：</strong><span class="ns-text-color">￥<span v-text="payMoney">0.00</span></span>
		</p>
		<a href="javascript:order.submit();" class="submit-order-btn ns-bg-color">提交订单</a>
	</div>
	<!-- end 订单计算信息 end -->
</div>

{eq name="$is_virtual" value="0"}
	{notempty name="$data['invoice_info']"}
	<!-- start 发票选择页 start -->
	<div data-page="invoice">
		<header class="ns-header">
			<a class="go-back" href="javascript:page.hide();"><i class="icon-angle-left"></i></a>
			<h1>发票信息</h1>
		</header>
		<div class="h50"></div>

		<div class="invoice-wrap">
			<div class="available-invoice">
				<span>是否需要发票</span>
				<span class="invoice-checkbox"> 
					<input type="checkbox" class="switch-checkbox" id="is-need-invoice">
					<label for="is-need-invoice" class="switch-label ns-border-color-gray">
			            <span class="switch-circle"></span>
			        </label>
			    </span>
			</div>
			<div class="dividing-line ns-bg-color-gray-fadeout-80 hide"></div>
			<div class="invoice-form hide">
				<div class="form-group ns-border-color-gray clearfix">
					<label>发票类型</label>
					<label style="padding:0px;margin-left:10px;" onclick="switchtype(1)">
						<input type="radio" name="invoice_type" value="1" checked="checked">
						<span style="padding:13px 5px 13px 0;line-height:20px;float:right;">普票</span>
					</label>
					<label style="padding:0px;margin-left:10px;" onclick="switchtype(2)">
						<input type="radio" name="invoice_type" value="2" />
						<span style="padding:13px 5px 13px 0;line-height:20px;float:right;">专票</span>
					</label>
				</div>
				<div class="form-group ns-border-color-gray clearfix">
					<label>发票抬头</label>
					<input type="text" placeholder="请输入发票抬头" name="invoice_title" class="ns-bg-color-gray-fadeout-60">
				</div>
				<div class="form-group ns-border-color-gray clearfix">
					<label>纳税人识别号</label>
					<input type="text" placeholder="请输入纳税人识别号" name="taxpayer_identification_number" class="ns-bg-color-gray-fadeout-60">
				</div>
				<div class="special-ticket" style="display:none">
					<div class="form-group ns-border-color-gray clearfix">
						<label>开户银行</label>
						<input type="text" placeholder="开户银行" name="opening_Bank" class="ns-bg-color-gray-fadeout-60">
					</div>
					<div class="form-group ns-border-color-gray clearfix">
						<label>银行账号</label>
						<input type="text" placeholder="银行账号" name="bank_account" class="ns-bg-color-gray-fadeout-60">
					</div>
					<div class="form-group ns-border-color-gray clearfix">
						<label>企业地址</label>
						<input type="text" placeholder="企业地址" name="business_address" class="ns-bg-color-gray-fadeout-60">
					</div>
					<div class="form-group ns-border-color-gray clearfix">
						<label>企业电话</label>
						<input type="text" placeholder="企业电话" name="business_tel" class="ns-bg-color-gray-fadeout-60">
					</div>
				</div>
				<div class="form-group ns-border-color-gray clearfix">
					<label>发票内容</label>
				</div>
				<ul class="invoice-cont-list">
					{notempty name="$data['invoice_info']['order_invoice_content_list']"}
						{foreach name="$data['invoice_info']['order_invoice_content_list']" item="vo" key="k"}
							{eq name="$k" value="0"}
							<li class="selected ns-border-color-gray">
								<i class="iconfont iconchecked ns-text-color"></i>
							{else/}
							<li class="ns-border-color-gray">
								<i class="iconfont iconcheckbox ns-text-color-gray"></i>
							{/eq}
								<span>{$vo}</span>
							</li>
						{/foreach}
					{/notempty}
				</ul>
			</div>
			{if $data['invoice_info']['order_invoice_tax'] > 0} 
			<p class="tips ns-text-color"><i class="iconfont icontishi"></i> 需要发票需加收{$data['invoice_info']['order_invoice_tax']}%的税费</p>
			{/if}
		</div>
			
		<div class="invoice-bottom">
			<a href="javascript:page.confirm()" class="invoice-confirm-btn ns-bg-color">确定</a>
		</div>
	</div>
	<!-- end 发票页 end -->
	{/notempty}

	{notempty name="$data['express_type']"}
	<!-- 配送服务-->
	<div data-page="delivery">
		<header class="ns-header">
			<a class="go-back" href="javascript:page.hide();"><i class="icon-angle-left"></i></a>
			<h1>配送服务</h1>
		</header>
		<div class="h50"></div>

		<div class="delivery-wrap">
			<h3 class="title">配送方式</h3>
			<ul class="clearfix shipping-type-list">
				{foreach name="$data['express_type']" item="vo" key="k"}
				<li {if $k=="0"}class="selected ns-text-color ns-border-color"{else/}class="ns-border-color-gray"{/if} data-value="{$vo.type_id}">{$vo.type_name}</li>
				{/foreach}
			</ul>
			<div class="dividing-line ns-bg-color-gray-fadeout-80"></div>

			<div class="panel logistics {if $data['express_type'][0]['type_id'] neq 1}hide{/if}">
				{notempty name="$data['express_company_list']"}
				<h3 class="v2-title ns-border-color-gray">物流公司</h3>
				<ul class="express-company-list">
					{foreach name="$data['express_company_list']" item="vo" key="k"}
						{eq name="$k" value="0"}
						<li class="selected ns-text-color-hover ns-border-color-gray" data-value="{$vo.co_id}">
							<i class="iconfont iconchecked ns-text-color"></i>
							<span>{$vo.company_name}</span>
						</li>
						{else/}
						<li class="ns-border-color-gray" data-value="{$vo.co_id}">
							<i class="iconfont iconcheckbox ns-text-color-gray"></i>
							<span>{$vo.company_name}</span>
						</li>
						{/eq}
					{/foreach}
				</ul>
				{/notempty}
				{if $data['order_config']['order_designated_delivery_time']}
				<div class="shipping-time ns-text-color-gray" onclick="picker.show('shipping-time');">
					<span class="pull-left">配送时间： <time>工作日、双休日与节假日均可送货</time></span><i class="fa fa-pencil"></i>
				</div>
				{else /}
				<div class="shipping-time ns-text-color-gray">
					<span class="pull-left">配送时间： <time>工作日、双休日与节假日均可送货</time></span></i>
				</div>
				{/if}
			</div>

			<div class="panel pickup-point {if $data['express_type'][0]['type_id'] neq 2}hide{/if}">
				{notempty name="$data['pickup_point_list']"}
				<h3 class="v2-title ns-border-color-gray">自提点</h3>
				<ul class="pickup-point-list"> 
					{foreach name="$data['pickup_point_list']" item="vo" key="k"}
						{eq name="$k" value="0"}
						<li class="clearfix selected" data-value="{$vo.id}">
							<i class="iconfont iconchecked ns-text-color"></i>
						{else/}
						<li class="clearfix" data-value="{$vo.id}">
							<i class="iconfont iconcheckbox ns-text-color-gray"></i>
						{/eq}
							<div class="pickup-point-info">
								<h5 class="name">{$vo.name}</h5>
								<p class="address ns-text-color-gray">{$vo.province_name} {$vo.city_name} {$vo.district_name} {$vo.address}</p>
							</div>
						</li>
						<div class="line ns-bg-color-gray"></div>
					{/foreach}
				</ul>
				{/notempty}
			</div>

			<p class="distribution-time hide">{$data.distribution_time}</p>

		</div>

		<div class="delivery-bottom">
			<a href="javascript:page.confirm();" class="delivery-confirm-btn ns-bg-color">确定</a>
		</div>
		
	</div>
	<!-- end 配送服务 end -->
	{/notempty}
{/eq}

{notempty name="$data['coupon_list']"}
<!-- 优惠券选择 -->
<div data-page="coupon">
	<header class="ns-header">
		<a class="go-back" href="javascript:page.hide();"><i class="icon-angle-left"></i></a>
		<h1>优惠券</h1>
	</header>
	<div class="h50"></div>

	<div class="coupon-wrap">
		<ul class="coupon-list">
    		{foreach name="$data['coupon_list']" item="vo" key="k"}
    			{eq name="$k" value="0"}
				<li class="clearfix selected" data-value="{$vo.coupon_id}">
					<i class="iconfont iconchecked ns-text-color"></i>
				{else/}
				<li class="clearfix" data-value="{$vo.coupon_id}">
					<i class="iconfont iconcheckbox ns-text-color-gray"></i>
				{/eq}
				<div class="coupon-info ns-text-color clearfix">
					<div class="coupon-left-view">
						<p class="money" data-value="{$vo.money}"><strong>{$vo.money|round}</strong></p>
						{if $vo.at_least > 0}
						<p class="at-last">满{$vo.at_least}元可用</p>
						{else/}
						<p class="at-last">无门槛券</p>
						{/if}
					</div>
					<div class="coupon-right-view">
						<p class="limit ns-text-color-black"><i class="iconfont iconyouhuiquan"></i>{if $vo.range_type}全部商品可用{else/}部分商品可用{/if}</p>
						<p class="time-limit ns-text-color-gray">有效期至{$vo.end_time|date="Y-m-d",###}</p>
					</div>
				</div>
			</li>
			{/foreach}
		</ul>
	</div>

	<div class="coupon-bottom">
		<a href="javascript:page.confirm();" class="coupon-confirm-btn ns-bg-color">确定</a>
	</div>
</div>
<!-- 优惠券选择 -->
{/notempty}

<!-- 遮罩 -->
<div class="shade hide" onclick="picker.hide();"></div>

<!-- start 支付方式选择 start -->
<div class="picker hide middle" data-picker="picker-pay-type">
	<div class="picker-head ns-bg-color-gray-fadeout-60">
		<span class="title">支付方式</span>
		<i class="fa fa-close ns-text-color-gray" onclick="picker.hide();"></i>
	</div>
	<div class="picker-body pay">
		<ul class="pay-type-list">
			{notempty name="$data['pay_type']"}
				{foreach name="$data['pay_type']" item="vo" key="k"}
					{eq name="$k" value="0"}
					<li class="selected ns-border-color-gray" data-value="{$vo.type_id}">
						<i class="iconfont iconchecked ns-text-color"></i>
						<span>{$vo.type_name}</span>
					</li>
					{else/}
					<li class="ns-border-color-gray" data-value="{$vo.type_id}">
						<i class="iconfont iconcheckbox ns-text-color-gray"></i>
						<span>{$vo.type_name}</span>
					</li>
					{/eq}
				{/foreach}
			{/notempty}
		</ul>
	</div>
	<div class="picker-foot">
		<a href="javascript:picker.hide();" class="confirm-btn ns-bg-color">确定</a>
	</div>
</div>

<!-- 配送时间选择 -->
<div class="picker hide big" data-picker="picker-shipping-time">
	<div class="picker-head">
		<span class="title">配送时间</span>
		<i class="fa fa-close" onclick="picker.hide();"></i>
	</div>
	<div class="picker-body shipping">
		<div class="date-list">
			{php}
  				$week_array = ['周日','周一','周二','周三','周四','周五','周六'];
  				$time_slot = !empty($data['time_slot']) ? $data['time_slot'] : [];
  			{/php}
			<div class="distribution-time-out">
				{notempty name="$time_slot"}
				<div class="tit">选择配送时间段</div>
				<div class="time-out-list clearfix">
					{foreach name="$time_slot" item="vo" key="k"}
					<span {if $k=="0"}class="selected ns-bg-color"{else/}class="ns-bg-color-gray-fadeout-60"{/if}>{$vo}</span>
					{/foreach}
				</div>
				{/notempty}
				<div class="tit">选择配送时间</div>
				<ul class="clearfix shipping-time-list">
					{for start="3" end="10"}
						<li class="ns-bg-color-gray-fadeout-60" data-time="{php}echo strtotime($i." day");{/php}">{:date('Y-m-d', strtotime($i." day"))}&nbsp;{$week_array[date('w', strtotime($i." day"))]}</li>
					{/for}
				</ul>
			</div>
		</div>
	</div>
</div>

<div class="picker hide middle" data-custom="custom-type" id="order_custom">
	<div class="picker-head ns-bg-color-gray-fadeout-60">
		<span class="title">自定义表单数据</span>
		<i class="fa fa-close ns-text-color-gray" onclick="custom.hide();"></i>
	</div>
	{if addon_is_exit('NsCustomForm')}
	{php}
		$custom_list = api("System.Member.getOrderCustom", []);
	{/php}
	{notempty name="$custom_list['data']"}
		<from class="custom-form">
			{volist name="custom_list.data" id="list"}
			{if condition = "$list.custom_list"}		
			<div class="">
				<div class="custom-title">{$list.oc_name}</div>
				<input type="hidden" id="{$list.name_alias}" value="1">
				<ul>
					{volist name="list.custom_list" id="custom"}
					<li class="ns-border-color-gray" data-value="">
						<span>{$custom.field_name}</span>
						<input type="text" name="{$custom.field_e_name}"  placeholder="" id="{$custom.field_e_name}" data-fill="{$custom.is_fill}" data-name="{$custom.field_name}" data-type="{$custom.field_type}" data-oc="{$custom.oc_id}"/>
					</li>
					{/volist}
				</ul>
			</div>
			{/if}
			{/volist}
		</from>
	{/notempty}
	{/if}
	<div class="picker-foot">
		<a href="javascript:custom.hide();" class="confirm-btn ns-bg-color">确定</a>
	</div>
</div>


{/block}
{block name="footer"}{/block}
{block name="script"}
<script>
var _params = {
	'order_type' : {$params.order_type},
	'goods_sku_list' : '{$params.goods_sku_list}',
	'is_virtual' : {$is_virtual},
	'buyer_ip' : '{$buyer_ip}',
	'promotion_type' : "{$params.promotion_type}",
	'promotion_info' : '{$params.promotion_info|json_encode}'
};
</script>
<script src="__STATIC__/js/vue.min.js"></script>
<script src="WAP_JS/order_payment.js"></script>
{/block}